package com.yuba.front.domain.bo;

import com.yuba.front.domain.CollectFishSite;
import com.yuba.common.mybatis.core.domain.BaseEntity;
import com.yuba.common.core.validate.AddGroup;
import com.yuba.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 钓场收藏管理业务对象 collect_fish_site
 *
 * @author modakai
 * @date 2024-12-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CollectFishSite.class, reverseConvertGenerate = false)
public class CollectFishSiteBo extends BaseEntity {

    /**
     * 钓点id
     */
    @NotNull(message = "钓点id不能为空", groups = { EditGroup.class })
    private Integer fishSiteId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


}
